package com.yuyou.fn.platform.service;

import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.platform.entity.SysUser;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.platform.vo.SysUserQueryVo;
import com.yuyou.fn.platform.vo.SysUserSaveOrUpdateVo;

/**
 *
 * SysUser 表数据服务层接口
 *
 */
public interface ISysUserService extends ISuperService<SysUser,Long> {


    SysUser login(String username, String passwordMd5Hash );

    Page<SysUser> findSysUserByQueryForPage(SysUserQueryVo sysUserQueryVo, int pageNo, int pageSize);

    void saveOrUpdateSysUser(SysUserSaveOrUpdateVo sysUserSaveOrUpdateVo);

    void updateSysUserStatus(Long userId, Integer status);

    void changePassword(Long userId, String oldPassword, String newPassword);

    void deleteUser(Long userId );
}